/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.lottery.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.lottery.entity.Participation;

import java.util.List;
import java.util.Map;

/**
 * 微信抽奖助手-用户参与情况DAO接口
 *
 * @author 黄茂展
 * @version 2019-07-31
 */
@MyBatisDao
public interface ParticipationDao extends CrudDao<Participation> {

    int getNumOfActivity(String openid);

    int getUserNumOfPrize(String openid);

    Participation getUserParticipation(String openid, String activityId);

    int getNumOfWechatUser(String activityId);

    List<String> getWechatUserImageOfActivity(String activityId);

    Map<String, String> getPrizeNicknameImageOfActivity(String activityId);

    Participation getParticipationByOpenidActivityId(Map<String, String> map);

}